Skip to main content
POST
/
fleet
/
drivers
/
workflow-assignments
[beta] Publish a driver app workflow to drivers
curl --request POST \
  --url https://api.samsara.com/fleet/drivers/workflow-assignments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workflowId": "a4db8702-79d5-4396-a717-e301d52ecc11",
  "driverIdsToPublish": [
    "12434",
    "12434"
  ],
  "driverIdsToUnpublish": [
    "56789",
    "56789",
    "56789",
    "56789"
  ]
}
'
{
  "data": {
    "workflowId": "a4db8702-79d5-4396-a717-e301d52ecc11"
  }
}

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for publishing a driver app workflow to drivers.

workflowId
string
required

The UUID of the workflow to publish.

Example:

"a4db8702-79d5-4396-a717-e301d52ecc11"

driverIdsToPublish
string[]

List of driver IDs to publish the workflow to. If a driver already has the workflow, the operation is a no-op for that driver.

ID of the driver.

Example:
["12434", "12434"]
driverIdsToUnpublish
string[]

List of driver IDs to unpublish the workflow from. If a driver does not have the workflow, the operation is a no-op for that driver.

ID of the driver.

Example:
["56789", "56789", "56789", "56789"]

Response

OK response.

data
object
required

Confirmation of the workflow publish operation.